'use strict';
const db=uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const list=await db.collection('questions').orderBy("created","desc").get()
	//返回数据给客户端
	console.log(list);
	return {
		code:200,
		msg: '数据请求成功',
		data:list.data
	}
};
